﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using LicenserAPI;


namespace LicenserIdentification
{
    public partial class Form1 : Form
    {
        /// <summary>
        /// Constructor Checks for the Computer ID and put it on the GUI field.
        /// In addition, tooltips are initialized here.
        /// </summary>
        public Form1()
        {
            InitializeComponent();
            txtID.Text = LicenserAPI.Logic.GetComputerId();
            ttip1.SetToolTip(pictureBox1,"Mail this ID");
            ttip2.SetToolTip(pictureBox2, "Exit application");
        }

        private void pictureBox1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("This feature is not active yet","Send",
                MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
        }

        private void pictureBox2_Click(object sender, EventArgs e)
        {
            Application.Exit();
        }


        ToolTip ttip1 = new ToolTip();
        ToolTip ttip2 = new ToolTip();
    }
}
